import request from "@/api/request";
export default {
    identity: (param, token) => {
        return request({
            url: '/user/userInfo/identity/verification',
            method: 'post',
            headers: {'token': token},
            data: param
        })
    },
    getPublic: (token) => {
        return request({
            url: '/login/getPublicKey',
            method: 'get',
            headers: {'token': token}
        })
    },
    changePassword: (param, token) =>{
        return request({
            url: '/login/modifyPwd',
            method: 'post',
            headers: {'token': token},
            data: param
        })
    }
}